<?php
class system_passport_concept extends system_concept_abstract {
	
	public function init() {	
		$this->setModel('system_passport_model', 'passport');
		$this->setModelCols('passport', array('id', 'identity', 'credential', 'creationdate', 'creationip'));
	}
	
	public function save($row) {
		if(!$row->getIdentity() || !system_passport_instance::emailCheck($row->getIdentity())) {
			throw new system_exception("PASSPORT IDENTITY is empty or Formation Error.");
		}
		if($row->getId()) {
			
		} else {
			
		}
		return $row;		
	}

}